From 0874a5470856806031853352ee988ba87ad3f107 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 19 Aug 2018 01:16:51 +0000 Subject: [PATCH] gdk/wayland: Always map windows 'moved-to-rect' as popups Only popups can make use of the move-to-rect semantics so it makes no sense to try anything other surface type. --- gdk/wayland/gdksurface-wayland.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index af12fa8290..d8d2a02d0b 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -1569,6 +1569,8 @@ gdk_wayland_surface_handle_configure_popup (GdkSurface *surface, &flipped_x, &flipped_y); + impl->position_method = POSITION_METHOD_MOVE_TO_RECT; + g_signal_emit_by_name (surface, "moved-to-rect", &flipped_rect, @@ -2467,6 +2469,9 @@ should_map_as_popup (GdkSurface *surface) break; } + if (impl->position_method == POSITION_METHOD_MOVE_TO_RECT) + return TRUE; + return FALSE; } -- 2.30.2